<?php 
/* SVN FILE: $Id$ */
/* QuartosFoto Test cases generated on: 2009-10-22 16:27:44 : 1256228864*/
App::import('Model', 'QuartosFoto');

class QuartosFotoTestCase extends CakeTestCase {
	var $QuartosFoto = null;
	var $fixtures = array('app.quartos_foto', 'app.quarto', 'app.foto');

	function startTest() {
		$this->QuartosFoto =& ClassRegistry::init('QuartosFoto');
	}

	function testQuartosFotoInstance() {
		$this->assertTrue(is_a($this->QuartosFoto, 'QuartosFoto'));
	}

	function testQuartosFotoFind() {
		$this->QuartosFoto->recursive = -1;
		$results = $this->QuartosFoto->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('QuartosFoto' => array(
			'id'  => 1,
			'quarto_id'  => 1,
			'foto_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>